home *** CD-ROM | disk | FTP | other *** search
/ Dos/V Magazine 1995 October 15 / CD [VMAG951015].bin / _demo / nekodemo / rtrv / shared.dir / 00340.ls < prev    next >
Encoding:
Text File  |  1995-05-10  |  3.7 KB  |  162 lines

  1. on startMovie
  2.   global gcurrentnumber, gphotonumber, gblenddraw, gblendchar, gextension
  3.   set gextension to ".mod"
  4.   set gblenddraw to 12
  5.   set gblendchar to 23
  6.   initauthor()
  7. end
  8.  
  9. on initauthor
  10.   global gphotonumber, gactionlist, gpleasespeak, gauthor, gallbio
  11.   set gpleasespeak to EMPTY
  12.   set gphotonumber to 1
  13. end
  14.  
  15. on outcursor
  16.   set the cursor of sprite 40 to -1
  17.   set the cursor of sprite 41 to -1
  18.   set the cursor of sprite 42 to -1
  19.   set the cursor of sprite 43 to -1
  20.   set the cursor of sprite 13 to -1
  21.   set the cursor of sprite 14 to -1
  22.   set the cursor of sprite 15 to -1
  23.   set the cursor of sprite 16 to -1
  24. end
  25.  
  26. on outpanel
  27.   hidefloat()
  28.   outcursor()
  29.   killpuppet(2)
  30.   killpuppet(15)
  31.   killpuppet(16)
  32.   killpuppet(17)
  33.   killpuppet(18)
  34.   killpuppet(19)
  35.   killpuppet(20)
  36. end
  37.  
  38. on initbio
  39.   makepuppet(2)
  40.   makepuppet(20)
  41.   makepuppet(21)
  42. end
  43.  
  44. on outbio
  45.   killpuppet(2)
  46.   killpuppet(20)
  47.   killpuppet(21)
  48. end
  49.  
  50. on waitticks aticks
  51.   set theendtime to ticks() + aticks
  52.   repeat while ticks() < theendtime
  53.     nothing()
  54.   end repeat
  55. end
  56.  
  57. on makepuppet puppetchannel, thecast, theblend, h, v, theink
  58.   puppetSprite(puppetchannel, 1)
  59.   if not voidp(theblend) then
  60.     set the blend of sprite puppetchannel to theblend
  61.   else
  62.     set the blend of sprite puppetchannel to 100
  63.   end if
  64.   if not voidp(h) then
  65.     set the locH of sprite puppetchannel to h
  66.   end if
  67.   if not voidp(v) then
  68.     set the locV of sprite puppetchannel to v
  69.   end if
  70.   if not voidp(thecast) then
  71.     if stringp(thecast) then
  72.       set thecast to the number of cast thecast
  73.     end if
  74.     set the castNum of sprite puppetchannel to thecast
  75.   end if
  76.   if not voidp(theink) then
  77.     set the ink of sprite puppetchannel to theink
  78.   else
  79.     set the ink of sprite puppetchannel to 36
  80.   end if
  81.   set the stretch of sprite puppetchannel to 0
  82.   set the type of sprite puppetchannel to 1
  83.   set the visible of sprite puppetchannel to 1
  84. end
  85.  
  86. on killpuppet ch
  87.   puppetSprite(ch, 0)
  88. end
  89.  
  90. on fltdown aUp, aDown
  91.   global galreadyshownbutton
  92.   repeat while stillDown()
  93.     if rollOver(clickOn()) then
  94.       if galreadyshownbutton then
  95.         set galreadyshownbutton to 0
  96.         showfloat()
  97.       end if
  98.       next repeat
  99.     end if
  100.     set galreadyshownbutton to 1
  101.     hidefloat()
  102.   end repeat
  103. end
  104.  
  105. on hidefloat
  106.   global galreadyshownbutton
  107.   set the visible of sprite 45 to 0
  108.   set the visible of sprite 46 to 0
  109.   set the visible of sprite 47 to 0
  110.   set galreadyshownbutton to 1
  111.   updateStage()
  112. end
  113.  
  114. on showfloat thenum
  115.   global gblend.45, gblend.46, gblend.47
  116.   if (the mouseH < 590) and (the mouseH > 50) then
  117.     makepuppet(45, "45CLOSE.mod", gblend.45)
  118.     makepuppet(46, "46CLOSE.mod", gblend.46)
  119.     if gblend.47 = 0 then
  120.       makepuppet(47, "DUMMY", gblend.47)
  121.     else
  122.       makepuppet(47, "47CLOSE.mod", gblend.47)
  123.     end if
  124.     set a to the mouseH
  125.     set b to the mouseV
  126.     set the locH of sprite 45 to a - 30
  127.     set the locV of sprite 45 to b - 20
  128.     set the locH of sprite 46 to a + 30
  129.     set the locV of sprite 46 to b - 20
  130.     set the locH of sprite 47 to a
  131.     set the locV of sprite 47 to b + 50
  132.     set the visible of sprite 45 to 1
  133.     set the visible of sprite 46 to 1
  134.     set the visible of sprite 47 to 1
  135.     updateStage()
  136.   end if
  137. end
  138.  
  139. on btnDown aUp, aDown
  140.   repeat while stillDown()
  141.     if rollOver(clickOn()) then
  142.       set the castNum of sprite clickOn() to the number of cast aDown
  143.     else
  144.       set the castNum of sprite clickOn() to the number of cast aUp
  145.     end if
  146.     updateStage()
  147.   end repeat
  148. end
  149.  
  150. on btnUp aUp, cmd
  151.   set the castNum of sprite clickOn() to the number of cast aUp
  152.   updateStage()
  153.   if rollOver(clickOn()) and not soundBusy(2) and not soundBusy(3) then
  154.     sound playFile 4, "POYO"
  155.     do(cmd)
  156.     return 1
  157.   else
  158.     beep(1)
  159.     return 0
  160.   end if
  161. end
  162.